package com.dokimall.order.feign;

import com.dokimall.common.utils.R;
import com.dokimall.order.vo.MemberAddrVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("dokimall-member")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/getUserAddr")
    List<MemberAddrVo> getUserAddr(@RequestParam Long userId);

    @GetMapping("/member/memberreceiveaddress/fare")
    R getFare(@RequestParam("addrId")Long addrId);
}
